package com.niit.order.myImpl;

import com.niit.order.myInterface.Command;
import com.niit.order.pojo.Receiver;

/**Command实现类
 * @author yaojianfeng
 */
public class ConcreteCommand implements Command {

    private Receiver receiver;

    public ConcreteCommand(Receiver receiver){
        this.receiver = receiver;
    }

    @Override
    public void execute() {
        this.receiver.action();
    }
}
